package cn.bdqn.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.bdqn.mapper.AttributesonMapper;
import cn.bdqn.pojo.Attributeson;
import cn.bdqn.service.AttributesonService;

@Service("AttributesonService")
public class AttributesonServiceImpl implements AttributesonService{

	   @Resource
	    private AttributesonMapper attributesonMapper;

	    @Override
	    public List<Attributeson> showA(){
	        List<Attributeson> aslist=attributesonMapper.showAll();
	        return aslist;
	    }

	    @Override
	    public int addA(Attributeson a) {
	        int flag = attributesonMapper.add(a);
	        return flag;
	    }
}
